﻿using Xierun.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Xierun.IServices;

namespace Xierun.Services
{
    public class ChatCommandService : BaseService<ChatCommand>, IChatCommandService
    {
        private EntityContext _context;
        public ChatCommandService(EntityContext context):base(context)
        {
            _context = context;
        }

        #region ChatCommand       

        public List<ChatCommand> GetWithChatCommandParam()
        {
            return _context.ChatCommand.AsNoTracking().Include(x => x.ChatCommandParam).ToList();
        }

        #endregion
    }
}
